package com.todo.auth.remote;

import com.todo.auth.remote.dto.*;
import com.todo.common.common.entity.response.BizResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author azhebuxing
 * @date 2025/2/20 00:51
 * @description
 */
@FeignClient(name = "todoAdminService",url = "http://localhost:17000")
public interface StaffRemoteService {

    @PostMapping("/api/system/staff/queryStaffDetailByUserName")
    BizResponse<StaffDetailDTO> queryStaffDetailByUserName(@RequestBody StaffUserNameDTO dto);

    @GetMapping("/api/system/staff/captchaImage")
    BizResponse<CaptchaDTO> getCaptchaImg();

    @PostMapping("/api/system/staff/queryUserInfoById")
    BizResponse<StaffInfoDTO> queryUserInfoById(@RequestBody StaffUserIdDTO dto);

    @PostMapping("/api/system/staff/recordLoginInfo")
    BizResponse<Boolean> recordLoginInfo(@RequestBody RecordLoginInfoDTO dto);
}
